home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / TreeView / TreeController.h < prev    next >
Encoding:
Text File  |  1995-12-11  |  1.1 KB  |  42 lines

  1. //        Written by Don Yacktman Copyright (c) 1994 by Don Yacktman.
  2. //                Version 1.0.  All rights reserved.
  3. //
  4. //        Modified by Aleksey Sudakov <zander@cnext.crec.mipt.ru>
  5. //        * Aug. 17, 1995 *    Added save to EPS/TIFF 
  6. //
  7. //        This notice may not be removed from this source code.
  8. //
  9. //    This program is included in the MiscKit by permission from the author
  10. //    and its use is governed by the MiscKit license, found in the file
  11. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  12. //    for a list of all applicable permissions and restrictions.
  13. //    
  14.  
  15.  
  16. #import <appkit/appkit.h>
  17.  
  18. @interface TreeController:Object
  19. {
  20.     id    treeView;
  21.     id  infoPanel;
  22.     int nextX, nextY;
  23.     BOOL first;
  24. }
  25. + initialize;
  26.  
  27. - init;
  28. - info:sender;
  29. - open:sender;
  30. - save:sender;
  31.  
  32. - (BOOL)openFile:(const char *)name;
  33. - copyPSToStream:(NXStream*)aStream forView:view;
  34. - copyTIFFToStream:(NXStream*)aStream forView:view;
  35.  
  36. /* Application delegate methods */
  37. - appDidInit:(Application *)sender;
  38. - (int)app:sender openFile:(const char *)file type:(const char *)type;
  39. - (BOOL)appAcceptsAnotherFile:sender;
  40.  
  41. @end
  42.